{% load i18n %} {% load markup %} {% with field_count=table.headers|length row_count=table.rows|length %} {% block table_headers %} {% join '_' table.uid 'order_by' as order_by_key %} {% for h in table.headers %} {% block table_header %} {{ h.name|capfirst }} {% if h.attname in table.order_by %} {% else %} {% endif %} {% endblock %} {% endfor %} {% trans "Actions" %} {% endblock %} {% if row_count %} {% for row in table.rows %} {% for f in row.fields %} {% with field_index=forloop.counter0 %} {% block table_field %} {% if field_index == 0 %} {% block table_first_column %}{{ f }}{% endblock %} {% else %} {% block table_column %}{{ f }}{% endblock %} {% endif %} {% endblock %} {% endwith %} {% endfor %} {% block table_field_actions %} {% endblock %} {% endfor %} {% endif %} {% block table_footer %} {% blocktrans with total_count=paginator.count %}{{ row_count }} of {{ total_count }} items{% endblocktrans %} {% endblock %} {% endwith %}